.TH std::generator::promise_type 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::generator::promise_type \- std::generator::promise_type

.SH Synopsis
   class generator<Ref, V, Allocator>::promise_type;  (since C++23)

   The promise type of std::generator.

.SH Member functions

   constructor           constructs the promise_type object
   (implicitly declared) \fI(public member function)\fP
   destructor            destroys the promise_type object
   (implicitly declared) \fI(public member function)\fP
   get_return_object     issues the generator object
                         \fI(public member function)\fP
   initial_suspend       issues an awaiter for initial suspend point
                         \fI(public member function)\fP
   final_suspend         issues an awaiter for final suspend point
                         \fI(public member function)\fP
   yield_value           processes the object obtained from co_yield
                         \fI(public member function)\fP
   await_transform       maps the object obtained from co_await to an awaiter
   [deleted]             \fI(public member function)\fP
   return_void           handles co_return; or the exit out of coroutine's body
                         \fI(public member function)\fP
   unhandled_exception   processes exceptions that leaked from the coroutine's body
                         \fI(public member function)\fP
   operator new          allocates memory using Allocator
   \fB[static]\fP (C++23)      \fI(public static member function)\fP
   operator delete       deallocates memory previously obtained from operator new
   \fB[static]\fP (C++23)      \fI(public static member function)\fP

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   noop_coroutine_promise used for coroutines with no observable effects
   (C++20)                \fI(class)\fP

.SH Category:
     * Todo no example
